package com.wish.wishfinance_management.service.impl;

import com.wish.wishfinance_management.entity.TCwCheckBatchDetail;
import com.wish.wishfinance_management.mapper.TCwCheckBatchDetailMapper;
import com.wish.wishfinance_management.service.ITCwCheckBatchDetailService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import dto.financeDto.CwCheckBatchDetailResponseDto;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 对账批次明细表（保存对账结果明细的表） 服务实现类
 * </p>
 *
 * @author fanzijun
 * @since 2021-04-08
 */
@Service
public class TCwCheckBatchDetailServiceImpl extends ServiceImpl<TCwCheckBatchDetailMapper, TCwCheckBatchDetail> implements ITCwCheckBatchDetailService {

    @Override
    public List getCheckBatchDetailList(CwCheckBatchDetailResponseDto cwCheckBatchDetailResponseDto) {
        TCwCheckBatchDetail tCwCheckBatchDetail = new TCwCheckBatchDetail();
        BeanUtils.copyProperties(cwCheckBatchDetailResponseDto,tCwCheckBatchDetail);

        List<TCwCheckBatchDetail> list = baseMapper.selectCheckBatchDetail(tCwCheckBatchDetail);

        return list;
    }
}
